package com.shixi.shixitraining.shixitraining.ui.tabhome.adapter;

import android.content.Context;

import com.shixi.shixitraining.shixitraining.R;
import com.shixi.shixitraining.shixitraining.test.TestPopup;
import com.shixi.shixitraining.shixitraining.view.recycleview.BaseAdapter;
import com.shixi.shixitraining.shixitraining.view.recycleview.BaseRecycleHolder;

import java.util.List;

/**
 * Created by shenyan on 2018/8/7.
 */

public class PopupAuthenAdapter extends BaseAdapter<TestPopup> {
    public PopupAuthenAdapter(Context context, List<TestPopup> data) {
        super(context, data);
    }

    @Override
    public void convert(BaseRecycleHolder holder, TestPopup item, int position) {
        holder.setText(R.id.tv_session, item.getTitles());

    }

    @Override
    protected int getLayoutId(int viewType) {
        return R.layout.adapter_popup_session;
    }
}
